<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class eventcheckout extends CI_Controller{
    public function __constuctor(){
        parent::__construct();

    }
    public function index(){
      $this->load->model("event_md","event");
      $eid=$_POST['checkoutEid'];
      $rs=$this->event->getEventInfo($eid,"cost");
      if($rs!=false){
        
        $dbEventCost= number_format($rs[0]->cost, 2, '.', '');

        $sesData=$this->session->userdata('userData');
        $uid=$sesData['userId'];
        $curReturnUrl =  base_url()."/profile/processEvents?eid=$eid&join=on&uid=$uid";
        $curCancelUrl = base_url();
        $include="html/application/helpers/expresscheckout.php";
        if(strpos($_SERVER['HTTP_HOST'],"localhost")===false){
            $include="/application/helpers/expresscheckout.php";
        }
        include_once $_SERVER['DOCUMENT_ROOT'].$include;
      }else{
          show_404();
      }
    }
}
?>
